package com.nuc.list1;

import java.util.ArrayList;
import java.util.Arrays;

/**
 * Time    : 2023/3/30 11:06
 * Author  : 王摇摆
 * FileName: Demo10.java
 * Software: IntelliJ IDEA 2020.2.2
 * Blog    ：https://blog.csdn.net/weixin_44943389?type=blog
 */

public class Demo10 {
    public static void main(String[] args) {
        ArrayList<String> person = new ArrayList<>();
        person.add("wgw1");
        person.add("wgw2");
        person.add("wgw3");


        System.out.println("将集合转换为数组:" + person.toArray());
        System.out.println("将集合转换为数组:" + Arrays.toString(person.toArray()));

    }
}
